import { authActions } from "../actions/Auth";
import { commodityManagementActions } from "../actions/CommodityManagement";
import { profileActions } from "../actions/PersonalInformation";
import { supplierManagementActions } from "../actions/SupplierManagement";
import { userManagementActions } from "../actions/UserManagement";
import { warehouseManagementActions } from "../actions/WarehouseManagement";
import { store } from "../actions/store";

function clearAuth() {
  store.dispatch(authActions.clear());
  store.dispatch(userManagementActions.clear());
  store.dispatch(profileActions.clear());
  store.dispatch(warehouseManagementActions.clear());
  store.dispatch(commodityManagementActions.clear());
  store.dispatch(supplierManagementActions.clear());
}

export { clearAuth };